﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.MultiEditingInPathEditor.SetLocationsProperties.CUiSLPFlexGridWrapper
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.ComponentModel;
using Tecnomatix.Engineering.Ui;
using Tecnomatix.Engineering.Ui48;


namespace DnProcessSimulateCommands.MultiEditingInPathEditor.SetLocationsProperties;

public class CUiSLPFlexGridWrapper : TxFlexGrid
{
  private IContainer components;

  public CUiSLPFlexGridWrapper() => this.InitializeComponent();

  public CUiSLPFlexGridWrapper(IContainer container)
  {
    container.Add((IComponent) this);
    this.InitializeComponent();
  }

  protected virtual void SetupCustomStyles()
  {
    base.SetupCustomStyles();
    if (TxControlsUtility.DesignMode)
      return;
    this.RemoveZebraStyle();
    this.InitCustomStyles();
  }

  private void RemoveZebraStyle()
  {
    if (TxControlsUtility.DesignMode || !TxControlsUtility.FlatStyleEnabled)
      return;
    this.AlternatingRowsStyle(true);
  }

  private void InitCustomStyles()
  {
  }

  protected virtual void Dispose(bool disposing)
  {
    if (disposing && this.components != null)
      this.components.Dispose();
    base.Dispose(disposing);
  }

  private void InitializeComponent() => this.components = (IContainer) new Container();
}
